<?php $this->fetch('public/head') ?>
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">信息列表</li>
        <!-- <li class=""><a href="<?php echo url('add') ?>">添加信息</a></li> -->
    </ul>
    <div class="layui-tab-content">
       <form class="layui-form layui-form-pane" action="" method="get">
            <div class="layui-inline">
                <label class="layui-form-label">姓名关键词</label>
                <div class="layui-input-inline">
                    <input type="text" name="title" value="<?php echo input('title') ?>" placeholder="请输入关键词" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <button class="layui-btn">搜索</button>
                <a href="<?php echo url('downloads') ?>"><div style="display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    background-color: #009688;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    border: none;
    border-radius: 2px;
    cursor: pointer;">导出EXCEL表格</div>
            </div></a>
        </form>
        <hr>

        <form action="" method="post" class="ajax-form">
            选中项：
            <div class="layui-tab-item layui-show">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>微信昵称</th>
<!--                        <th>邮箱</th>-->
<!--                        <th>手机</th>-->
                        <th>推荐人数</th>
                        <th>积分</th>                         
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach($list as $v): ?>
                    <tr>
                        <td><?php echo $v['id'] ?></td>
                        <td><?php echo $v['name'] ?></td>
<!--                        <td>--><?php //echo $v['email'] ?><!--</td>-->
<!--                        <td>--><?php //echo $v['tel'] ?><!--</td>-->
                        <td><?php echo $v['count'] ?></td>
                        <td><?php echo $v['count'] ?></td>
                        <td>
<!--                            <a href="--><?php //echo url('edit?id='.$v['id']) ?><!--" class="layui-btn layui-btn-normal layui-btn-xs">查看</a>-->
                            <a href="<?php echo url('tjlist?tuijian='.$v['tuijian']) ?>" class="layui-btn layui-btn-normal layui-btn-xs">推荐人列表</a>
                        </td>
                    </tr>
                    <?php endforeach; ?>
                    </tbody>
                </table>
                <!--分页-->

            </div>
        </form>
    </div>
</div>

<?php $this->fetch('public/script') ?>

<script>
    $('.code').click(function(){
        layer.alert('http://zl.huisheng.com/index/order/qd/nid/'+$('.code').data('val')+'.html');
    })
</script>
